/**********************************************************
 * File description:PreferencesService.h
 * Function:偏好设置服务类
 * Current Version: 1.0.0
 * Author: 夏新宇
 * Date: 2022-10-02
 *  -----
 *  Copyright by bokun Software.
 **********************************************************/
#ifndef PREFERENCESSERVICE_H
#define PREFERENCESSERVICE_H

#include <QCoreApplication>
#include "XmlParser.h"
#include "Convertion.h"

#include <QDebug>

class PreferencesService
{
public:
    PreferencesService();
    QHash<QString,QString> getPreferencesData();
    void updatePreferences(QHash<QString,QString> updatedPreferencesData);
private:
    Simplexml * simplexml;
    Convertion * conv;
    char * filePath;
    int filePathLength;
};

#endif // PREFERENCESSERVICE_H
